﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DailyApp.API.DataModel
{
    /// <summary>
    /// 备忘录表
    /// </summary>
    [Table("MemoInfo")]
    public class MemoInfo
    {

        /// <summary>
        /// 备忘录ID
        /// </summary>
        [Key]//主键 自增
        public int MemoId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

 
        public DateTime CreateTime { get; set; } = DateTime.Now;

        public int? AccountId { get; set; }//后添加的字段可能为空
    }
}
